<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('商户注销')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-merchantInfo-updateBank">
            <input type="hidden" name="settleSerial" th:value="${settleSerial}" class="form-control"/>
            <input type="hidden" name="id" th:value="${id}" class="form-control"/>
           <div class="form-group">
                <label class="col-sm-3 control-label is-required">总行名称：</label>
                <div class="col-sm-8">
                    <input name="headBank" onclick="selectHeadBank()" th:value="${bankHeadname}" readonly id="headBank" type="text" placeholder="总行名称" class="form-control" required>
                    <i class="fa fa-search" style="margin-top: -22px;margin-right:3px;float:right;"></i>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">支行名称：</label>
                <div class="col-sm-8">
                    <input name="branchBank" onclick="selectBranchBank()" th:value="${bankName}" readonly id="branchBank" type="text" placeholder="支行名称" class="form-control" required>
                    <i class="fa fa-search" style="margin-top: -22px;margin-right:3px;float:right;"></i>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">支付系统行号：</label>
                <div class="col-sm-8">
                    <input type="text" name="subbranchId" id="bankNum"  th:value="${bankNum}" class="form-control" readonly required/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">结算人：</label>
                <div class="col-sm-8">
                    <input type="text" name="subbranchId"    th:value="${screenName}" class="form-control"  required/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">结算卡号：</label>
                <div class="col-sm-8">
                    <input type="text" name="subbranchId"    th:value="${screenNum}" class="form-control"  required/>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "merchantInfo/merchantInfo";
        $("#form-merchantInfo-updateBank").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(ctx + "merPaid/merPaid/updateMerPaid", $('#form-merchantInfo-updateBank').serialize());
            }
        }
        function selectHeadBank() {
            var url = prefix + "/selectHeadBank/";
            $.modal.open("选择总行" , url, '1000');
        }
        function selectBranchBank() {
            var headBank=$('#headBank').val();
            if (''==headBank || undefined==headBank){
                return;
            }
            var url = prefix + "/selectBranchBank/"+headBank;
            $.modal.open("选择支行" , url, '1000');
        }



    </script>
</body>
</html>